package jsyf.oa.entity.crm;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * Created by 魏欢欢 on 2017/12/24.
 * description:展会信息
 */
@Entity
@Table(name = "T_CRM_EXHIBITION", schema = "oa", catalog = "")
public class ExhibitionEntity extends BaseEntity{

    private String id;

    private String companyId;

    private String name;

    private String address;

    private String exhibitionDate;

    private String remark;

    private String createUserId;

    private Date createTime;

    private String isBigAreaManager;

    private List<ExhibitionAimsEntity> aimsList;

    private String companyName;

    private String brandId;

    private String province;

    private String city;

    private String regionId;


    private String year;

    private String month;

    private String day;

    private Integer type;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getExhibitionDate() {
        return exhibitionDate;
    }

    public void setExhibitionDate(String exhibitionDate) {
        this.exhibitionDate = exhibitionDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIsBigAreaManager() {
        return isBigAreaManager;
    }

    public void setIsBigAreaManager(String isBigAreaManager) {
        this.isBigAreaManager = isBigAreaManager;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }


    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("NAME", getName());
        obj.put("ADDRESS", getAddress());
        obj.put("EXHIBITION_DATE", getExhibitionDate());
        obj.put("REMARK", getRemark());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("BRAND_ID", getBrandId());
        obj.put("REGION_ID", getRegionId());
        obj.put("TYPE", getType());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_CRM_EXHIBITION";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("COMPANY_ID", "companyId");
        obj.put("NAME", "name");
        obj.put("ADDRESS", "address");
        obj.put("EXHIBITION_DATE", "exhibitionDate");
        obj.put("REMARK", "remark");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("BRAND_ID", "brandId");
        obj.put("REGION_ID", "regionId");
        obj.put("TYPE", "type");
        return obj;
    }
    public List<ExhibitionAimsEntity> getAimsList() {
        return aimsList;
    }

    public void setAimsList(List<ExhibitionAimsEntity> aimsList) {
        this.aimsList = aimsList;
    }
}
